package com.itheima.io1.mycharstream1;

import java.io.FileWriter;
import java.io.IOException;

/**
 * @author zhangbaiyan
 * @date 2024-09-20 18:55
 * @description:
 * @version:
 */
public class test3 {
    public static void main(String[] args) throws IOException {

        FileWriter fw = new FileWriter("a.txt");

        fw.write("我的同学哥哥是好样的");
        fw.write("能文能武");
        fw.write("个个都是人才");
        fw.flush();
        fw.write("说话又好听");
        fw.write("又颜有钱");
        fw.write("还有一对好腰肢");
        fw.write(97);
        fw.close();
    }
}
